package com.magist.manage.copyrights.service;

import com.github.pagehelper.PageInfo;
import com.magist.core.entity.Page;
import com.magist.core.service.BaseService;
import com.magist.manage.copyrights.entity.Communication;
import tk.mybatis.mapper.entity.Example;

import java.util.List;

public interface CommunicationService extends BaseService<Communication>{

    /**
     * 分页方法
     * @param example
     * @param page
     * @return
     */
    PageInfo<Communication> page(Example example, Page page);

    /**
     * 分页方法
     * @param entity
     * @param page
     * @return
     */
    PageInfo<Communication> page(Communication entity, Page page);

    void doSaveCommunication(Communication communication);

    boolean doUpdateCommunication(Communication communication);

    List<Communication> findByCreateById(String userId);
}